package com.xiyue.leaspring.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.xiyue.leaspring.dao.IDeptDAO2;
import com.xiyue.leaspring.service.IDeptService2;
import com.xiyue.leaspring.vo.Dept;

@Service
//@Primary
public class DeptServiceImpl2 implements IDeptService2 {

	@Autowired
	@Qualifier("deptDAONew")
	private IDeptDAO2 deptDAO;//自动注入
	
	@Override
	public boolean add(Dept vo) {
		System.out.println("****执行业务层方法****");
		// TODO Auto-generated method stub
		return this.deptDAO.doCreate(vo);
	}

}
